/*
	Copyright (c) 2011 Andrey O. Zbitnev (azbitnev@gmail.com)
	Licensed under the MIT License (LICENSE).

	$Id: ys.slider.css 35 2012-11-30 07:05:44Z azbitnev@gmail.com $
*/

/*
	ys-slider: common logic
*/

.ys-slider {
	overflow: visible;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.ys-slider > .thumb {
	cursor: pointer;
	position: relative;
	top: 0;
	left: 0;
}

/*
	ys-slider: scrollbars common logic
*/

.ys-scrollbar-vertical > .thumb, .ys-scrollbar-horizontal > .thumb {
	cursor: pointer;
	position: relative;
	top: 0;
	left: 0;
}

/*
	ys-slider: common style
*/

.ys-slider > .track-piece {
	border-top-color: #eee;
	border-top-style: solid;
}

.ys-slider > .track {
	border-top-color: #ccc;
	border-top-style: solid;
}

.ys-slider > .thumb {
	background: url(images/ys.slider.png) 0 0 no-repeat;
}

/*
	ys-slider: sizes
*/

.ys-slider {
	width: 300px;
}

.ys-slider > .thumb {
	width: 10px;
	height: 20px;
	margin-top: -10px; /* half of height */
}

.ys-slider > .track-piece {
	height: 0px;
	border-top-width: 1px;
	/*margin-top: 10px; /* half of thumb height */
}

.ys-slider > .track {
	height: 0px;
	border-top-width: 1px;
	margin-top: -11px; /* half of thumb height */
}

/*
	ys-slider: scrollbars common style
*/

.ys-scrollbar-vertical, .ys-scrollbar-horizontal {
	background: #eee;
	opacity: 0.66;
}

.ys-scrollbar-vertical:hover, .ys-scrollbar-horizontal:hover {
	opacity: 1;
}

.ys-scrollbar-vertical > .thumb, .ys-scrollbar-horizontal > .thumb {
	background: #999;
}

/*
	ys-slider: scrollbars sizes
*/

.ys-scrollbar-vertical {
	width: 0.8em;
	height: 10em;
	border-width: 1px;
}

.ys-scrollbar-vertical > .thumb {
	width: 0.8em;
	height: 2em;
}

.ys-scrollbar-horizontal {
	width: 10em;
	height: 0.8em;
	border-width: 1px;
}

.ys-scrollbar-horizontal > .thumb {
	width: 2em;
	height: 0.8em;
}
